import { Patient } from '@/types';
import { useModel } from '@umijs/max';
import { useState } from 'react';

export default () => {
  const { videoMatrixServer } = useModel('global');
  const [patient, setPatient] = useState<Patient>();
  const proxySetPatient = async (_patient: Patient) => {
    setPatient(_patient);
  };

  return {
    patient,
    setPatient: proxySetPatient,
  };
};
